package gov.decea.projects.sgq.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import org.springframework.core.io.ClassPathResource;

public class MessageHelper {
	private static final Properties properties = new Properties();
	static {
		InputStream is = null;
		try {
			is = new ClassPathResource("messages.properties").getInputStream();
			properties.load(is);
		} catch (IOException e) {
			e.printStackTrace();
		}
		
	}
	public static String getMessage(String key){
		return properties.getProperty(key);
	}

}
